﻿
@{
    ViewBag.Title = "ForensicOpinionIndex";
}
@model justice.ViewModel.forensicopinion_shroffbook
<style>
    #date{border-top:0px;border-left:0px;border-right:0px;border-bottom:0px;width:25%}
    .alert{width:50%;margin:auto;text-align:center;font-size:20px;}
    .div{background-color:white;}
    .mytable,tr,td{color:black;border:solid 1px black;background-color:white;}
    .mytable{width:90%;margin:auto}
    th{width:130px;height:50px;text-align:center;font-weight:500;}
    textarea{width:100%;color:black;height:185px;border:solid 0px;resize:vertical;outline:none;}
    .head{
        color:black;
        height:80px;
        width:99%;
        text-align:center;
        line-height:80px;
        font-size:20px;
        background-color:white;
        margin-top:auto;
        margin-left:auto;
        margin-right:auto;
        margin-bottom:2px;
    }
    .btns{
        text-align:center;
    }
    td div{
        margin-left:5px;
    }
    input{
        outline:none;
        border:solid 0px;
    }
</style>
<div id="alert-mes">
    @Html.ValidationMessage("AddForensicOpinionError")
    <button class="close" data-dismiss="alert">&times;</button>
</div>
<div class="div">
    <div class="head">法医学鉴定意见书</div>
    <div style="width:90%;margin:auto;margin-bottom:5px;font-size:17px;">表格编号：@Model.shroffbook_number</div>
    <form action="/ForensicOpinion/AddForensicOpinion?MainInfo_id=@Model.shroffbook_id" method="post">
        <table class="mytable">
            <tr>
                <th>委托人</th>
                <td><div>@Model.client</div></td>
            </tr>
            <tr>
                <th>委托事项</th>
                <td>
                   @{
                       string a = "<div>" + @Model.consignation_transaction + "</div>";
                       WriteLiteral(a);
                    }
                </td>
            </tr>
            <tr>
                <th>送鉴材料</th>
                <td>
                    @{
                        string b = "<div>" + @Model.shroff_material + "</div>";
                        WriteLiteral(b);
                    }
                </td>
            </tr>
            <tr>
                <th>受理日期</th>
                <td><div>@Model.acceptdate</div></td>
            </tr>
            <tr>
                <th>鉴定人</th>
                <td><div><input value="@Model.judger" name="judger" /></div></td>
            </tr>
            <tr>
                <th>鉴定日期</th>
                <td><div><input name="shroffdata" id="date" value="@Model.acceptdate" /></div></td>
            </tr>
            <tr>
                <th>鉴定地点</th>
                <td><div>@Model.identifylocation</div></td>
            </tr>
            <tr>
                <th>被鉴定人</th>
                <td><div>@Model.be_appraiser</div></td>
            </tr>
            <tr>
                <th>检查摘要</th>
                <td><div><textarea name="testcase">@Model.testcase</textarea></div></td>
            </tr>
            <tr>
                <th>检查过程</th>
                <td><div><textarea name="inspectionprocess">@Model.inspectionprocess</textarea></div></td>
            </tr>
            <tr>
                <th>分析说明</th>
                <td><div><textarea name="analysishows">@Model.analysishows</textarea></div></td>
            </tr>
            <tr>
                <th>鉴定意见</th>
                <td>
                    <div>
                        ( @Model.be_appraiser )的伤残等级评为:(<input name="expertopinion" value="@Model.expertopinion" />)
                    </div>
                    <div style="margin:20px 20% 10px 0;text-align:right;">
                        鉴定人：@Model.judger
                    </div>
                </td>
            </tr>      
        </table>
        <br />
        <div class="btns">
            <button type="submit" class="btn btn-primary">提交表单</button>
            <a href="javascript: history.go(-1);" class="btn btn-default">返回</a>
        </div>
        <div style="height:20px;"></div>
    </form>
</div>
<script type="text/javascript">
    $(function () {
        var val = $('#date').val();
        var str = val.substr(4, 1);
        console.log(str);
        var date = new Date().getFullYear() + str + new Date().getMonth() + str + new Date().getDay();

        $('#date').val(val + "--" + date);
        if ($('#alert-mes').find('span').html() != "") {
            $('#alert-mes').attr('class', 'alert alert-danger');
            $('.close').css('display', 'block');
        } else {
            $('.close').css('display', 'none');
        }
    })
</script>

